﻿namespace SqlSharp.Databases;

public class TableInfo(string name, string description, Dictionary<string, string> annotations) : Annotatable(annotations)
{
    private readonly List<ColumnInfo> _columns = [];

    public string Name { get; } = name;

    public string Description { get; } = description;

    public IReadOnlyList<ColumnInfo> Columns => _columns;

    internal void AddColumns(List<ColumnInfo> columns)
    {
        _columns.AddRange(columns);
    }
}